package fuxi;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class fz {
    public static void main(String[] args) {
        List<String> list=new ArrayList<>();
        list.add("a");
        list.add("b");
        list.add("c");
        list.add("d");
        System.out.println("反转前的字符串："+list);
        Collections.reverse(list);
        System.out.println("反转后的字符串为："+list);
    }
}
